<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>xstringb</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>xstringb</b> -  draw strings into a box</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>xstringb(x,y,str,w,h,[option])  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>x,y,w,h</b>
        </tt>: vector of 4 real scalars defining the box.</li>
      <li>
        <tt>
          <b>str</b>
        </tt>: matrix of strings.</li>
      <li>
        <tt>
          <b>option</b>
        </tt>: string.</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
      <tt>
        <b>xstringb</b>
      </tt> draws the matrix of strings <tt>
        <b>str</b>
      </tt> centered inside 
    the rectangle <tt>
        <b>rect=[x,y,w,h]</b>
      </tt>
    (lower-left point, width, height) in the current graphic scale.
    If <tt>
        <b>option</b>
      </tt> is given with the value <tt>
        <b>"fill"</b>
      </tt>, the character size is 
    computed so as to fill as much as possible in the rectangle.</p>
    <p>
    Enter the command <tt>
        <b>xstringb()</b>
      </tt> to see a demo.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

str=["Scilab" "is";"not" "elisaB"];
plot2d(0,0,[-1,1],"010"," ",[0,0,1,1]);
r=[0,0,1,0.5];
xstringb(r(1),r(2),str,r(3),r(4),"fill");
xrect(r(1),r(2)+r(4),r(3),r(4))
r=[r(1),r(2)+r(4)+0.01,r(3),r(4)/2];
xrect(r(1),r(2)+r(4),r(3),r(4))
xstringb(r(1),r(2),str,r(3),r(4),"fill");
r=[r(1),r(2)+r(4)+0.01,r(3),r(4)/2];
xrect(r(1),r(2)+r(4),r(3),r(4))
xstringb(r(1),r(2),str,r(3),r(4),"fill");
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="titlepage.htm">
        <tt>
          <b>titlepage</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="xstring.htm">
        <tt>
          <b>xstring</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="xstringl.htm">
        <tt>
          <b>xstringl</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="xtitle.htm">
        <tt>
          <b>xtitle</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
    <h3>
      <font color="blue">Author</font>
    </h3>
    <p>J.Ph.C.  </p>
  </body>
</html>
